//
//  MBJunctionView.h
//  iNaviCore
//
//  Created by fanyunlong on 2017/3/15.
//  Copyright © 2017年 Mapbar. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <GLKit/GLKit.h>
#import "MBNaviBaseTypes.h"
#import "MBNaviCoreBase.h"

typedef enum MBNaviExpandViewEvent {
    MBNaviExpandViewEvent_show = 1,
    MBNaviExpandViewEvent_refresh = 2,
    MBNaviExpandViewEvent_hide = 3,
}MBNaviExpandViewEvent;

@class MBJunctionView;
typedef void (^MBNaviExpandViewBlock)(MBNaviExpandViewEvent event, MBJunctionView* expandView);

@interface MBJunctionView : GLKView

@property (nonatomic) MBDataPreference preference;
@property (nonatomic) BOOL enable;
@property (nonatomic, retain) NSString* realViewURL;
@property (nonatomic, retain) NSString* roadNetViewURL;

/**
 设置放大图显示事件回调
 */
- (void)setNaviExpandViewBlock:(MBNaviExpandViewBlock)block;

- (BOOL)loadStyleSheet:(NSString*)styleSheet;
- (BOOL)selectClass:(NSString*)className;

- (void)closeOnce;
- (void)open;
- (BOOL)shouldDisplayOpenButton;
- (BOOL)shouldDisplay;

@end
